#include<stdio.h>
float max=0,min=0;
int main()
{
    float pjf(float array[],int n);
    int i;
    int n;
    float ave,score[10];
    printf("please enter the grade of 10 students\n");
    for(i=0;i<10;i++)
    {
        scanf("%f",&score[i]);
    }
    ave=pjf(score,10);
    printf("the max is %f the min is %f the average is %f",max,min,ave);
    return 0;
}
float pjf(float array[],int n)
{
    int i;
    float sum=0;
    float ave=0;
    for(i=0;i<10;i++)
    {
        
        sum=sum+array[i];
        
    }
    ave=sum/10;
    min=array[0];
    for(i=1;i<10;i++)
    {
        if(array[i]>max)max=array[i];  
        else if (array[i]<min)min=array[i];
    }
    return ave;
}